%%%-------------------------------------------------------------------
%% @doc log_app日志相关
%% @end
%%%-------------------------------------------------------------------

-module(game_log_app).


-export([start/1]).

%% @doc 启动日志监听
start(GameAppName) ->
    ConfigModRet = application:get_env(game_log, game_config_mod),
    case ConfigModRet of
        undefined ->
            io:format("config_mod undefined in game_log app env ~n"),
            init:stop(1);
        {ok, ConfigMod} ->
            game_log_config:set_config_mod(ConfigMod),
            game_log:init_app_logger(),
            game_log:init_logger(GameAppName)
    end,
    ok.

